import { RouteRecordRaw } from "vue-router";
import infomngRoutes from "./infomng";
import homeRoutes from "./home";
import usermngRoutes from "./usermng";
import systemmngRoutes from "./systemmng";
import columnmngRoutes from "./columnmng";
import stationmngRoutes from "./stationmng";
import interactivemngRoutes from "./interactivemng";
import statisticalRoutes from "./statistical";
import apimngRoutes from "./apimng";
import logmngRoutes from "./logmng";

const workbenchRoutes: Array<RouteRecordRaw> = [
    {
        path: '/main',
        name: 'Main',
        component: () => import(/* webpackChunkName: "workbench" */ '../../views/workbench/Main.vue'),
        redirect: '/home',
        children: [
            ...homeRoutes,
            ...infomngRoutes,
            ...usermngRoutes,
            ...systemmngRoutes,
            ...columnmngRoutes,
            ...stationmngRoutes,
            ...interactivemngRoutes,
            ...statisticalRoutes,
            ...apimngRoutes,
            ...logmngRoutes
        ]
    }
]
export default workbenchRoutes